package com.tedu._02notice.controller;

import com.tedu._02notice.pojo.dto.UserLoginParam;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/user/")
@Tag(name = "2-用户管理",description = "2-用户管理")
public class UserController {
    @PostMapping("login")
    @Operation(summary = "登录")
    public String login(@RequestBody UserLoginParam userLoginParam){
        System.out.println(userLoginParam);
        return "登录成功";
    }
}
